<%--
    Document   : Login
    Created on : 14/03/2011, 14:47:22
    Author     : tademir001
--%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ page contentType="text/html"%>
<%@ page pageEncoding="UTF-8"%>
<%@ page import="Negocios.Usuario" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <%response.setHeader("Cache-Control", "no-cache");
                    response.setHeader("Pragma", "no-cache");
                    response.setDateHeader("Expires", 0);
        %>
        <meta HTTP-EQUIV="Expires" CONTENT="-1"/>
        <meta HTTP-EQUIV="Cache-Control" content="no-cache"/>
        <meta HTTP-EQUIV="Pragma" content="no-cache"/>

        <!--Verifica se foi realizado o login e quais as permissões disponiveis para habilitacao do menu-->
        <!--%if (session.getAttribute("login") == null) {%>
               <!-jsp:forward page="Login.jsp" />
        <!--%}%>
        <!--% Usuario usuario = (Usuario) session.getAttribute("informacoesusuario");
                    if (usuario.getPermissoes().indexOf("03000000") == -1) {%>
        <!jsp:forward page="Principal.jsp" />
        <!--%}%-->


        <title>Clínica Luzes</title>


        <!--script utilizado pelo menu-->
         <script type="text/javascript" src="js/fancydropdown.js"></script>

        <!-- Utilizado pelo EXT  -->
        <link rel='stylesheet' type="text/css" href="js/ext-3.1.1/resources/css/ext-all.css"/>
        <script type="text/javascript" src='js/ext-3.1.1/adapter/ext/ext-base.js'></script>
        <script type='text/javascript' src='js/ext-3.1.1/ext-all.js'></script>

        <!-- Tradução do Ext -->
        <script type='text/javascript' src='js/ext-3.1.1/src/locale/ext-lang-pt_BR.js'></script>

        <script type='text/javascript' src='js/ext-3.1.1/ux/TabCloseMenu.js'></script>

        <!-- Upload de arquivos -->
        <script type="text/javascript" src="js/ext-3.1.1/ux/fileuploadfield/FileUploadField.js"></script>
        <link rel="stylesheet" type="text/css" href="js/ext-3.1.1/ux/fileuploadfield/css/fileuploadfield.css"/>

        <!-- Definições de vtypes -->
        <script type='text/javascript' src="js/vtypes.js"></script>

        <!-- Definições de Mascaras -->
        <script type='text/javascript' src="js/ext-3.1.1/ux/InputTextMask.js"></script>

        <!-- Barra de status -->
        <link rel="stylesheet" type="text/css" href="js/ext-3.1.1/ux/statusbar/css/statusbar.css" />
        <script type="text/javascript" src="js/ext-3.1.1/ux/statusbar/StatusBar.js"> </script>
        <script type="text/javascript" src="js/ext-3.1.1/ux/statusbar/ValidationStatus.js"> </script>



        <style type="text/css">

            /* hack reset (for production, use Yahoo! reset CSS)
            *************************/

            *
            {
                margin: 0;
                padding: 0;
            }

            /* body
            *************************/

            body
            {
                font: 14px/21px Georgia, serif;
                color: #370707;
                background: url(images/clinicaluzes_logo2.JPG) 170px 150px no-repeat ;
                width: 100%;
                height: 100%;
            }

            /* links
            *************************/

            a:link, a:visited, a:hover, a:active
            {
                text-decoration: none;
            }

            /* inline elements
            *************************/

            strong
            {
                font-weight: bold;
            }

            /* tabs
            *************************/

            ul.tabs
            {
                display: table;
                margin: 0;
                padding: 0;
                list-style: none;
                position: relative;
            }

            ul.tabs li
            {
                margin: 0;
                padding: 0;
                list-style: none;
                display: table-cell;
                float: left;
                position: relative;
            }

            ul.tabs a
            {
                position: relative;
                display: block;
            }

            /* dropdowns
            *************************/

            ul.dropdown
            {
                margin: 0;
                padding: 0;
                display: block;
                position: absolute;
                z-index: 999;
                top: 100%;
                width: 250px;
                display: none;
                left: 0;
            }

            ul.dropdown ul.dropdown
            {
                top: 0;
                left: 95%;
            }

            ul.dropdown li
            {
                margin: 0;
                padding: 0;
                float: none;
                position: relative;
                list-style: none;
                display: block;
            }

            ul.dropdown li a
            {
                display: block;
            }


            /* menu-specifc
            *************************/

            #menu
            {
                position: fixed;
                z-index: 5;
                top: 0;
                left: 0;
                width: 100%;
                height: 40px;
                line-height: 40px;
                background: #ffb35a url(images/topbg.gif) repeat-x;
                border-bottom: 1px solid #000;
            }

            #menu ul
            {
                margin: 0 auto;
            }

            #menu ul li.hasmore
            {
                background: url(images/drophighlight.png) no-repeat center 27px;
            }

            #menu ul li h4
            {
                margin: 0;
            }

            #menu ul li h4 a
            {
                font-size: 14px;
                color: #000;
                font-weight: bold;
                padding: 0 15px;
            }
 
            #menu ul li a /*Cor da fonte do menu*/
            {
                color: #36648B;
                padding-left: 4px;
            }

            #menu ul li a img
            {
                vertical-align: middle;
            }

            #menu ul li a:hover
            {
                background: url(images/topselectionleft.png) top left no-repeat;
            }

            #menu ul li a span
            {
                display: block;
                padding: 0 15px 0 11px;
            }

            #menu ul li a:hover span
            {
                background: url(images/topselectionright.png) top right;
            }

            #menu ul.dropdown
            {
                padding: 10px;
                background-image: url(images/dropdown.png);
                overflow:hidden;
                border-bottom: 1px solid #dc902f;
                width: 290px;
            }

            #menu ul.dropdown li a
            {
                border-bottom: 1px solid #e5cd8e;
                line-height: 30px;
                overflow: hidden;
                height: 30px;
            }

            #menu ul.dropdown li.last a
            {
                border-bottom-width: 0;
            }

            #menu ul.dropdown li a:hover
            {
                background: url(images/menuarrow.png) no-repeat left center;
            }

            #menu ul li h4 a:hover
            {
                background-image: none;
            }
             #rodape{
                height:7%;
                width:100%;
                position: absolute;
                bottom: 0;
                visibility:visible;
                background: #9FB6CD;
                background-position: center;
                border-top: 1px solid #000;
               
             }

           
        </style>



         <script type="text/javascript" >
            // habilita bales com mensagens
            Ext.QuickTips.init();

            function importacaoDeArquivo(tipo,logado){

                 if (tipo == 'cadastro-atendimento'){
                     <%//@include file="js/Cadastro/Atendimento.js"%>
                     <%//@include file="js/Cadastro/DadosPaciente.js" %>
                     CadastrarAtendimento(logado);
                 }

                 if (tipo == 'cadastro-teste'){
                    
                    <%//@include file="js/CadastroFuncionarios/ConsultaForm.js"%>
                          // ---- Proxys e Readers Utilizados ------
                    <%//@include file="js/CadastroFuncionarios/Proxys.js" %>

                    // ---- Form fotoUploadForm ------
                    <%//@include file="js/CadastroFuncionarios/FotoUploadForm.js"  %>

                    // ---- Window fotoUploadWindow ------
                    <%//@include file="js/CadastroFuncionarios/FotoUploadWindow.js"  %>

                    // ---- Form DadosFuncionario ------
                    <%//@include file="js/CadastroFuncionarios/DadosFuncionario.js" %>

                    // ---- Form Endereço ------
                    <%//@include file="js/CadastroFuncionarios/Endereco.js" %>

                    // ---- Form Documentos ------
                    <%//@include file="js/CadastroFuncionarios/Documentos.js" %>

                    // ---- Form DadosAdicionais ------
                    <%//@include file="js/CadastroFuncionarios/DadosAdicionais.js"  %>
                    // ---- Form cadastrofuncionario ------
                    <%//@include file="js/CadastroFuncionarios/CadastroFuncionarioForm.js"  %>
                    // ---- Form formFoto ------
                    <%//@include file="js/CadastroFuncionarios/FormFoto.js"  %>
                    // ---- Window cadastroFuncionarioWindow ------
                    <%//@include file="js/CadastroFuncionarios/CadastroFuncionarioWindow.js"  %>
                    // ---- Form viasForm ------
                    <%//@include file="js/CadastroFuncionarios/ViasForm.js"  %>
                    // ---- Window viasWindow ------
                    <%//@include file="js/CadastroFuncionarios/ViasWindow.js"  %>
                    // ---- Window consultaForm ------
                    <%//@include file="js/CadastroFuncionarios/ConsultaForm.js"  %>
                    // ---- Window consultaWindow ------
                    <%//@include file="js/CadastroFuncionarios/ConsultaWindow.js"  %>

                      // ---- Window principal ------
                    <%//@include file="js/CadastroFuncionarios/Principal.js"  %>
                    alert('Passei 1');
                    Cadastrar2(logado);//testando o from de Mimi
                    alert('Passei 2');
                     
                 }

                 // Cadastro de Pacientes
                 if (tipo == 'cadastro-paciente'){
                     <%@include file="js/Cadastro/Pacientes/DadosPaciente.js"%>
                     <%@include file="js/Cadastro/Pacientes/CadastroPacientesForm.js"%>
                     <%@include file="js/Cadastro/Pacientes/CadastroPacientesWindow.js"%>
                     cadastroPacienteWindow.show();
                 }

                 // LogOff
                 if (tipo == 'logoff'){
                     <%@include file="js/Logoff/Logoff.js"%>
                     Logoff();
                 }

                }
        </script>





    </head>
    <body>
        <div id="toda-pagina">
        <div id="menu">
            <ul class="tabs">
                
                <!--%if (usuario.getPermissoes().indexOf("0100") != -1) {%-->
                <li class="hasmore"><a href="#"><span>Cadastros</span></a>
                    <ul class="dropdown">
                         <li><a id="sub-menu-atendimento" style="cursor:hand;" >Atendimento</a></li>
                         <li><a id="cadastros" style="cursor:hand;" >Conv&ecirc;nio</a></li>
                         <!--%if (usuario.getPermissoes().indexOf("0101") != -1) {%-->
                         <li><a id="cadastros" style="cursor:hand;" onclick="importacaoDeArquivo('cadastro-paciente','Cadastro de Paciente');">Paciente</a></li>
                         <!--%}%-->
                        <li><a href="#">Material</a></li>
                        <li><a href="#">Funcion&aacute;rio</a></li>
                        <li class="last"><a href="#">Outros</a></li>
                    </ul>
                </li>
                <!--%}%-->



                <li class="hasmore"><a href="#"><span>Marca&ccedil;&atilde;o</span></a>
                    <ul class="dropdown">
                        <li><a href="#">Consulta</a></li>
                        <li><a href="#">Agenda</a></li>
                        <li><a href="#">Re-consulta</a></li>
                        <li class="last"><a href="#">Atendimento Extra</a></li>
                    </ul>
                </li>


                <li class="hasmore"><a href="#"><span>Relat&oacute;rio</span></a>
                    <ul class="dropdown">
                        <li><a href="#">Gerencial</a></li>
                        <li><a href="#">Estoque</a></li>
                        <li><a href="#">Financeiro</a></li>
                        <li><a href="#">Pessoal</a></li>

                    </ul>
                </li>



                <li class="hasmore"><a href="#"><span>Atendimento</span></a>
                    <ul class="dropdown">
                        <li><a href="#">Particular</a></li>
                        <li><a href="#">Conv&ecirc;nio</a></li>
                        <li><a href="#">Assist&ecirc;ncia M&eacute;dica</a></li>
                    </ul>
                </li>

                <li><a href="#"><span>Sobre</span></a></li>

                <li><a href="#"><span> Ajuda</span></a></li>

                <li><a name="logoff" id="logoff"  style="cursor:hand;" onclick="importacaoDeArquivo('logoff');"  ><span>Logoff</span></a></li>

            </ul>
        </div>
        
           
            



       <!-- RODAPE -->
       <div  id="rodape" style="text-align: center; font-size: 5; color: gray;">Desenvolvido por &nbsp;&nbsp;
           <a href="http://www.infomil.com.br" target="blank" ><img  src="images/logoinfomil200_60_rodape.png" alt="Infomil Desenvolvendo Tecnologia" style="vertical-align: middle;"/></a></div>
       <!-- FIM DO RODAPE -->


        </div><!--fim da div toda-pagina-->
    </body>
</html>
